package com.bruce.log;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author xin.ding
 * @date 2021/5/18 10:47
 */
public class PropertiesTest {
    private static final Logger log = LoggerFactory.getLogger(PropertiesTest.class);


    private static String taskName = "task";

    public static void main(String[] args) {
        log();
    }

    private static void log() {
        for (int i = 0; i < 5; i++) {
            log.debug("{} debug", taskName);
            log.info("{} info", taskName);
            log.warn("{} warn", taskName);
            log.error("{} error", taskName);
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
